﻿<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; CHARSET=utf-8">
    <title>Radikal Mailer</title>
    <script type="text/javascript" src="/_common/global.ashx?ver=-339091135"></script>
    <script type="text/javascript" src="ClientGlobalContext.js.aspx"></script>
    
    <link rel="stylesheet" type="text/css" href="/_common/styles/fonts.css" />
    <link rel="stylesheet" type="text/css" href="/_common/styles/global.css" />
    <link rel="stylesheet" type="text/css" href="/_common/styles/theme.css" />
    <link rel="stylesheet" type="text/css" href="/_common/styles/dialogs.css" />
    <link rel="stylesheet" type="text/css" href="/_common/styles/select.css" />
    <link rel="stylesheet" type="text/css" href="/_forms/controls/form.css" />
    <link rel="stylesheet" type="text/css" href="/_forms/controls/controls.css" />
    <link rel="stylesheet" type="text/css" href="/_controls/lookup/lookupdialogs.css" />
    <link rel="stylesheet" type="text/css" href="/_grid/appgrid.css" />

    <script type="text/javascript" src="rdk_jquery.min.js"></script>
    <script type="text/javascript" src="rdk_json2.js"></script>
    <script type="text/javascript" src="rdk_jqueryrestdataoperationfunctions.js"></script>
    <script type="text/javascript" src="rdk_crmrestkit.js"></script>
    <script type="text/javascript" src="rdk_knockout.js"></script>
    <script type="text/javascript" src="rdk_mailer.js"></script>

</head>
<body>
    <div style="width: 100%; height: 100%; overflow: auto">
        <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0">
            <tr>
                <td colspan="2" class="ms-crm-Dialog-Header">
                    <div class="ms-crm-Dialog-Header-Title" id="DlgHdTitle">
                        Radikal Mailer</div>
                    <div class="ms-crm-Dialog-Header-Desc" id="DlgHdDesc">
                        Simple HTML e-Mail merge</div>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 100%;">
                    <div class="ms-crm-Dialog-Main">
                        <div id="divWarning" style="height: 99%;">
                            <table cellspacing="0" cellpadding="0" width="100%" height="100%">
                                <tr>
                                    <td class="ms-crm-Dialog-Lookup-SearchArea">
                                        <table width="100%" cellpadding="0" cellspacing="0">
                                            <col>
                                            <col width="50%">
                                            <col width="16px">
                                            <col width="16px">
                                            <col width="50%">
                                            <tr height="25px">
                                                <td nowrap style="text-align: right">
                                                    <span class="ms-crm-Bold-Header">
                                                        <label id="selObjectsText" for="selObjects">
                                                            Campaign Activity:
                                                        </label>
                                                    </span>
                                                </td>
                                                <td class="ms-crm-Dialog-Lookup-Types">
                                                    <select id="selCA" name="selCA" data-bind="options: campaignActivities, optionsText: 'name', value: selectedCampaignActivity" class="ms-crm-SelectBox " tabindex="1" sort="ascending" />
                                                    
                                                </td>
                                                <td width="16px" style="font-size: 1px; border-right: 1px solid #CCCCCC;">
                                                    &nbsp;
                                                </td>
                                                <td width="16px" style="font-size: 1px; border-left: 1px solid #FFFFFF;">
                                                    &nbsp;
                                                </td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td nowrap style="text-align: right">
                                                    <span class="ms-crm-Bold-Header">
                                                        <label id="Label1" for="selObjects">
                                                            Marketing List:
                                                        </label>
                                                    </span>
                                                </td>
                                                <td class="ms-crm-Dialog-Lookup-Types">
                                                    <select id="selML" name="selML" data-bind="options: lists, optionsText: 'name', value: selectedList" class="ms-crm-SelectBox" tabindex="2" sort="ascending" />
                                                </td>
                                                <td width="16px" style="font-size: 1px; border-right: 1px solid #CCCCCC;">
                                                    &nbsp;
                                                </td>
                                                <td width="16px" style="font-size: 1px; border-left: 1px solid #FFFFFF;">
                                                    &nbsp;
                                                </td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td nowrap style="text-align: right; vertical-align:top; padding-top:8px">
                                                    <span class="ms-crm-Bold-Header">
                                                        <label id="Label2" for="selObjects">
                                                            Subject:
                                                        </label>
                                                    </span>
                                                </td>
                                                <td class="ms-crm-Dialog-Lookup-Types" colspan=4>
                                                    <input data-bind="value: subject" class="ms-crm-InputBox" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap style="text-align: right; vertical-align:top; padding-top:8px">
                                                    <span class="ms-crm-Bold-Header">
                                                        <label id="Label3" for="selObjects">
                                                            Body:
                                                        </label>
                                                    </span>
                                                </td>
                                                <td class="ms-crm-Dialog-Lookup-Types" colspan=4>
                                                    <textarea rows="15" data-bind="value: body">

                                                    </textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 10px; font-size: 1px; border-bottom: 1px solid #CCCCCC;" colspan=5>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 1px; font-size: 1px; border-top: 1px solid #FFFFFF;" colspan=5>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table height="100%" width="100%" id="Table1" cellpadding="0" cellspacing="0">
                                            <tr>
                                                campaign:&nbsp;<b data-bind="text: campaign().name()"></b>
                                                <hr />
                                                all:&nbsp;<b data-bind="text: all"></b>&nbsp;
                                                processed:&nbsp;<b data-bind="text: processed"></b>&nbsp;
                                                errors:&nbsp;<b data-bind="text: errors"></b>&nbsp;
                                                current:&nbsp;<b data-bind="text: currentCustomer"></b>&nbsp;
                                                <hr />
                                                <b data-bind="visible: inProgress">In Progress...</b>&nbsp;
                                                <hr />
                                                last&nbsp;error:&nbsp;<b data-bind="text: error"></b>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div id='divFillBg' style='display: none; position: absolute; top: 80px; left: 20px;
                        height: 23px; width: 355px; background-color: #ffffff;'>
                        &nbsp;
                    </div>
                    <div id='divFill' style='display: none; position: absolute; top: 80px; left: 20px;
                        height: 23px; width: 0px; filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#00ff00, EndColorStr=#00cc00);'>
                        &nbsp;
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Left">
                    &nbsp;
                </td>
                <td class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">

                    <button id="butBegin" class="ms-crm-Button" onmouseover="Mscrm.ButtonUtils.hoverOn(this);"
                        onmouseout="Mscrm.ButtonUtils.hoverOff(this);"
                        data-bind="click: startProcessing" >
                        Start</button>&nbsp;
                    <button id="cmdDialogPause" class="ms-crm-Button" onmouseover="Mscrm.ButtonUtils.hoverOn(this);"
                        onmouseout="Mscrm.ButtonUtils.hoverOff(this);"
                        data-bind="click: pauseProcessing">
                        Pause</button>&nbsp;
                    <button id="cmdDialogCancel" class="ms-crm-Button" onmouseover="Mscrm.ButtonUtils.hoverOn(this);"
                        onmouseout="Mscrm.ButtonUtils.hoverOff(this);"
                        data-bind="click: cancelProcessing">
                        Cancel</button>&nbsp;
                    
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
